package com.bjfu.gmms.model;

public class User {
    private String username;
    private String password;
    private int id;             // 区分身份
    private int user_id;        // 区分具体人物

    // getters and setters

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    // 获取具体人物
    public int getUser_id() {
        return user_id;
    }
    // 这个方法理论不能被使用
    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", id=" + id +
                '}';
    }
}
